<?php

namespace addons\Minerva\common\models;

use Yii;

/**
 * This is the model class for table "{{%minerva_notallow_ext}}".
 *
 * @property int $id 主键id
 * @property int $role_id 角色主键id
 * @property string $ext 扩展名
 */
class NotallowExt extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%minerva_notallow_ext}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['role_id', 'ext'], 'required'],
            [['role_id'], 'integer'],
            [['ext'], 'string', 'max' => 8],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => '主键id',
            'role_id' => '角色主键id',
            'ext' => '扩展名',
        ];
    }
}
